<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>
		<form action="" method="post">
			<label>姓名：</label>
			<input type="text" name="name" value="" />
			<br>
			<label>学号：</label>
			<input type="text" name="num" value="" />
			<br>
			<label>学科：</label>
			<input type="text" name="subject" value="PHP" />
			<br>
			<label>专业：</label>
			<select name="major">
			<?php
			foreach($data_major as $key => $value){
			?>
				<option value="<?=$value[0]?>"><?=$value[1]?></option>
			<?php
			}
			?>
			</select>
			<br>
			<input type="submit" name="sub" value="添加" />
		</form>
	</div>
</body>
</html>